<%@ page import="java.util.List" %>
<%@ page import="entity.Rainquality" %>
<%@ page import="service.RainService" %>
<%@ page import="service.Impl.RainServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: 铃
  Date: 2024/9/18
  Time: 9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%
    List<Rainquality> list=(List<Rainquality>) application.getAttribute("list");
    if (list==null){
        response.sendRedirect(request.getContextPath()+"/do_index.jsp?opr=getAll");
        return;
    }
%>
<body>
<div id="table" align="center" style="text-align: center" >
    <table align="center" style="text-align: center" border="1" cellpadding="0" cellspacing="0" width="60%">
        <thead>
            <td>序号</td>
            <td>区域名称</td>
            <td>监测时间</td>
            <td>雨量值(mm)</td>
            <td>监测站</td>
            <td>站点地址</td>
            <td>操作</td>
        </thead>
            <%
                for (Rainquality rainquality:list){
            %>
        <tr>
            <td><%=rainquality.getId()%></td>
            <td><%=rainquality.getDistrictName()%></td>
            <td><%=rainquality.getMonitorTime()%></td>
            <td><%=rainquality.getRain()%></td>
            <td><%=rainquality.getMonitoringStation()%></td>
            <td><%=rainquality.getMonitoringAddress()%></td>
            <td><a href="/do_index.jsp?opr=<%=rainquality.getId()%>" id="del">删除</a></td>
        </tr>
        <%
            }
        %>

    </table>
    <a href="/add.jsp">新增雨量检测信息</a>
</div>

</body>
<script src="js/jquery.js"></script>
<script>

</script>
</html>
